

<%@ page import="com.portico.security.User" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'user.label', default: 'User')}" />
        %{--<title><g:message code="default.create.label" args="[entityName]" /></title>--}%
    </head>
    <body>
        %{--<div class="nav">--}%
            %{--<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>--}%
            %{--<span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>--}%
        %{--</div>--}%
        <div class="body">
            <h1>Reset Password </h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${userInstance}">
            <div class="errors">
                <g:renderErrors bean="${userInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action='resetPassword' >
                <div class="dialog">
                    <table>
                        <tbody>
                        <tr class="prop">
                            <td valign="top" class="name">
                                <label for="username"><g:message code="user.label" default="Username" /></label>
                            </td>
                            <td valign="top">
                                <g:textField name="username" value=""  />
                            </td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">
                                <label for="password"><g:message code="user.password.label" default="Current Password" /></label>
                            </td>
                            <td valign="top">
                                <g:passwordField name="currentPassword" value="" />
                            </td>
                        </tr>


                        <tr class="prop">
                            <td valign="top" class="name">
                                <label for="password"><g:message code="user.password.label" default="New Password" /></label>
                            </td>
                            <td valign="top">
                                <g:passwordField name="password" value="" />
                            </td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">
                                <label for="password"><g:message code="user.password.label" default="Confirm Password" /></label>
                            </td>
                            <td valign="top">
                                <g:passwordField name="confirmPassword" value="" />
                            </td>
                        </tr>

                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="reset" value="reset"></g:submitButton> </span>
                </div>
            </g:form>
        </div>
    </body>
</html>
